package org.jeecg.modules.leave.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.vo.LoginUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.leave.entity.AgLeave;

/**
 * @Description: ag_leave
 * @Author: jeecg-boot
 * @Date:   2020-05-18
 * @Version: V1.0
 */
public interface AgLeaveMapper extends BaseMapper<AgLeave> {

    IPage<AgLeave> myApplyList(Page<AgLeave> page, @Param("user")LoginUser user, @Param("agLeave")AgLeave agLeave);

    IPage<AgLeave> myTodoTasks(Page<AgLeave> page, @Param("user")LoginUser user, @Param("agLeave")AgLeave agLeave);

    IPage<AgLeave> myDoneTasks(Page<AgLeave> page, @Param("user")LoginUser user, @Param("agLeave")AgLeave agLeave);
}
